const mysql = require("mysql");

// 创建数据库连接对象
const db = mysql.createPool({
  host: "150.158.93.223",
  user: "root",
  password: "somepass",
  database: "nodeboot",
});

// 向外共享db数据库连接对象
module.exports = db;
